package com.softWang.codeGen;

public class CodeGenMain {

    public static void main(String[] args) {
        String url = "jdbc:mysql://127.0.0.1:3307/soft_wang?zeroDateTimeBehavior=convertToNull&serverTimezone=UTC&useUnicode=true&characterEncoding=utf-8&useSSL=false";
        String username = "root2";
        String password = "123456";
        String outputDir = "D://code";  // 指定输出目录
        String author = "wang";  // 设置作者

        String parent = "com.softWang";  // 设置父包名
        String moduleName = "system";  // 设置模块名
        String[] tables = {"system_role_dept"};  // 设置需要生成的表名
        String[] ignoreColumns = {"ctime", "utime","cuser","euser","deleted","tenantId"};  // 设置忽略生成的字段

        MybatisPlusCodeGenUtil.generateCode(url, username, password, outputDir, author,
                parent, moduleName, tables, ignoreColumns);

    }
}
